﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace KL.Store.Core.Domain
{
    public class Sales
    {
        public int Sira { get; set; }
        public string Barkod { get; set; }
        public string StokAdi { get; set; }
        public int KartId { get; set; }
        public string LinkUrl { get; set; }
        public decimal Miktar { get; set; }
        public decimal ToplamFiyat { get; set; }
        public decimal BirimFiyat { get; set; }
        public string OdemeTipi { get; set; }
        public decimal YapilanIskonto { get; set; }
        public DateTime FaturaTarihi { get; set; }
        public string FaturaSeri { get; set; }
        public int FaturaNo { get; set; }
        public int AmbarId { get; set; }
        public string AmbarAdi { get; set; }
        public string CariGrup { get; set; }
    }

    public class CriticalStocks
    {
        public int KartId { get; set; }
        public int AmbarId { get; set; }
        public string AmbarAdi { get; set; }
        public string StokAdi { get; set; }
        public string Barkod { get; set; }
        public string LinkUrl { get; set; }
        public decimal StokMiktari { get; set; }
        public DateTime SonFaturaTarihi { get; set; }
    }

    public class TotalStock
    {
        public int KartId { get; set; }
        public int Sira { get; set; }
        public string Barkod { get; set; }
        public string KartAdi { get; set; }
        public string LinkUrl { get; set; }
        public decimal Miktar { get; set; }
        public decimal AlisFiyati { get; set; }
        public decimal OrtalamaMaliyet { get; set; }
        public decimal SatisFiyati { get; set; }
    }

    public class AmbarListesi
    {
        public int IdAmbar { get; set; }
        public string AmbarKodu { get; set; }
        public string AmbarAdi { get; set; }
    }

    public class FaturaSatir
    {
        public string col1 { get; set; }
        public string col2 { get; set; }
        public string col3 { get; set; }
        public string col4 { get; set; }
        public string col5 { get; set; }
    }

    public class CCProcess
    {
        public int id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public decimal Payment { get; set; }
        public int Installment { get; set; }
        public DateTime CreateDate { get; set; }
        public string IpAddress { get; set; }
        public string CardOwnerName { get; set; }
        public string CardNumber { get; set; }
        public string BankName { get; set; }
        public string OrderNo { get; set; }
        public decimal OrgPayment { get; set; }
        public string Mobile { get; set; }
        public bool Accepted { get; set; }
        public string Model { get; set; }
        public string TCKimlik { get; set; }
    }

    public class SiparisSatis
    {
        public string Aciklama { get; set; }
        public int CariId { get; set; }
        public int DurumId { get; set; }
        public string Durumu { get; set; }
        public string FaturaAdi { get; set; }
        public decimal GenelToplam { get; set; }
        public string GirisUsr { get; set; }
        public int GorusulenId { get; set; }
        public int InstallmentNo { get; set; }
        public int KargoId { get; set; }
        public string OdemeSekli { get; set; }
        public decimal Payment { get; set; }
        public int PersonelId { get; set; }
        public int SiparisId { get; set; }
        public DateTime Tarih { get; set; }
        public int TeslimId { get; set; }
        public string TeslimSekli { get; set; }
        public DateTime TeslimTar { get; set; }
        public int Tip { get; set; }
        public decimal ToplamTutar { get; set; }
        public int PosId { get; set; }
        public string PosName { get; set; }
        public int BankId { get; set; }
        public string BankName { get; set; }
        public string Info { get; set; }
        public string Comment { get; set; }
        public int TeslimEdildiIsaretlenebilir { get; set; }
    }

    public class SiparisSatisBilgi
    {
        //s.TIP, s.SIPARISID, s.TARIH, s.CARIID, m.FATURAADI as 'CARIADI', s.TESLIMTAR, s.ACIKLAMA, s.PERSONELID, s.GORUSULENID, s.TESLIMID, s.ODEMESEKLI, s.TESLIMSEKLI,
        //s.TOPLAMTUTAR, s.ISKONTOTUTAR, s.ALTISKONTO, s.GIDERTUTAR, s.KDVTUTAR, s.ARATOPLAM, s.YUVARLAMA, s.GENELTOPLAM, s.GIRISUSR, s.GIRISTAR, s.DUZELUSR, s.DUZELTAR, s.DURUMID,
        //s.FATURASIPARISILE, s.KARGOID
        public int Tip { get; set; }
        public int SiparisId { get; set; }
        public DateTime Tarih { get; set; }
        public int CariId { get; set; }
        public string CariAdi { get; set; }
        public DateTime TeslimTar { get; set; }
        public string Aciklama { get; set; }
        public int PersonelId { get; set; }
        public int GorusulenId { get; set; }
        public int TeslimId { get; set; }
        public string OdemeSekli { get; set; }
        public string TeslimSekli { get; set; }
        public decimal ToplamTutar { get; set; }
        public decimal IskontoTutar { get; set; }
        public decimal AltIskonto { get; set; }
        public decimal GiderTutar { get; set; }
        public decimal KdvTutar { get; set; }
        public decimal AraToplam { get; set; }
        public decimal Yuvarlama { get; set; }
        public decimal GenelToplam { get; set; }
        public string GirisUsr { get; set; }
        public DateTime GirisTar { get; set; }
        public string DuzelUsr { get; set; }
        public DateTime DuzelTar { get; set; }
        public int DurumId { get; set; }
        public bool FaturaSiparisIle { get; set; }
        public int KargoId { get; set; }
    }

    public class SiparisSatisDetay
    {
        //s.SATIRNO, s.STOKID, k.ACIKLAMA, s.SIPARISTIP, s.DEPOID, d.DEPOADI, s.STOKBIRIM, s.STOKMIKTAR, s.PARACINS, s.BIRIMFIYAT, sISKONTO, s.KDVORANI, s.GENELTOPLAM
        public int SatirNo { get; set; }
        public int StokId { get; set; }
        public string Aciklama { get; set; }
        public string Model { get; set; }
        public string VariantValue { get; set; }
        public int DepoId { get; set; }
        public string DepoAdi { get; set; }
        public string StokBirim { get; set; }
        public decimal StokMiktar { get; set; }
        public decimal MiktarTeslim { get; set; }
        public decimal MiktarIptal { get; set; }
        public decimal MiktarKalan { get; set; }
        public string ParaCins { get; set; }
        public decimal BirimFiyat { get; set; }
        public decimal Iskonto { get; set; }
        public decimal KdvOrani { get; set; }
        public decimal GenelToplam { get; set; }
    }

    public class OdemeSekli
    {
        public string Kisa { get; set; }
        public string Uzun { get; set; }
    }

    public class SiparisDurum
    {
        public int DurumId { get; set; }
        public string Aciklama { get; set; }
    }

    public class CategoryMenuList
    {
        public int CategoryId { get; set; }
        public int ParentCategoryId { get; set; }
        public string CategoryName { get; set; }
        public string ParentCategoryName { get; set; }
        public string CategoryType { get; set; }
    }

    public class CategoryEdit
    {
        public int OrgCategoryId { get; set; }
        public int CategoryId { get; set; }
        public int ParentCategoryId { get; set; }
        public string ParentCategoryName { get; set; }
        public string CategoryName { get; set; }
        public string CategoryType { get; set; }
        public string ProductGroupCode { get; set; }
        public string GroupCode { get; set; }
        public string WebDescription { get; set; }
        public string WebKeywords { get; set; }
        public bool ShowOnEStore { get; set; }
        public bool BannerActive { get; set; }
        public short eStoreRowCount { get; set; }
        public string eStoreImageType { get; set; }
        public int BasketGroupNo { get; set; }
        public string BasketGroupName { get; set; }
        public decimal BasketMinPrice { get; set; }
        public bool BasketMinNotice { get; set; }
        public string ProductQuestionString { get; set; }
        public decimal CargoPrice { get; set; }
        public int SuggestedGroup { get; set; }
        public int ShowcaseGroup { get; set; }
        public int MaxInstallmentCount { get; set; }
        public int ProductListCount { get; set; }
        public decimal InstallmentPrice { get; set; }
        public decimal Desi { get; set; }
        public bool FreeCargoInCity { get; set; }
        public bool FreeCargo { get; set; }
        public bool Transport { get; set; }
        public string WebTitle { get; set; }
        public string Canonical { get; set; }
        public int RelatedProductCount { get; set; }
        public bool ShowModelOnProductDetails { get; set; }
    }

    public class CategoryExtraFields
    {
        public int CategoryId { get; set; }
        public int SatirNo { get; set; }
        public string Title { get; set; }
        public string Value { get; set; }
        public short ShowOnEstore { get; set; }
    }
}
